package ${packageEntity!"com.hr.recruitment.entity"}.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
<#assign hasLocalDateTime = false>
<#assign hasLocalDate = false>
<#assign hasDate = false>
<#assign hasBigDecimal = false>
<#if table?? && table.fields??>
<#list table.fields as field>
<#if field.propertyType?? && field.propertyType == 'LocalDateTime'>
<#assign hasLocalDateTime = true>
</#if>
<#if field.propertyType?? && field.propertyType == 'LocalDate'>
<#assign hasLocalDate = true>
</#if>
<#if field.propertyType?? && field.propertyType == 'Date'>
<#assign hasDate = true>
</#if>
<#if field.propertyType?? && field.propertyType == 'BigDecimal'>
<#assign hasBigDecimal = true>
</#if>
</#list>
</#if>
<#if hasLocalDateTime>
import java.time.LocalDateTime;
</#if>
<#if hasLocalDate>
import java.time.LocalDate;
</#if>
<#if hasDate>
import java.util.Date;
</#if>
<#if hasBigDecimal>
import java.math.BigDecimal;
</#if>

/**
 * ${table.comment!} 列表查询请求
 *
 * @author ${author}
 * @since ${date}
 */
@Data
@ApiModel(value = "${entity}列表查询请求入参")
public class Find${entity}ListReq {

<#if table?? && table.fields??>
<#list table.fields as field>
<#if field.propertyName?? && !["id", "createdStamp", "createdTxStamp", "lastUpdatedStamp", "lastUpdatedTxStamp", "deleted"]?seq_contains(field.propertyName)>
    <#if field.propertyType == 'LocalDateTime' || field.propertyType == 'LocalDate' || field.propertyType == 'Date'>
    /**
     * ${field.comment!''}开始时间
     */
    @ApiModelProperty("${field.comment!''}开始时间")
    @QueryOp(QueryOpEnum.GE)
    private ${field.propertyType} ${field.propertyName}Start;

    /**
     * ${field.comment!''}结束时间
     */
    @ApiModelProperty("${field.comment!''}结束时间")
    @QueryOp(QueryOpEnum.LE)
    private ${field.propertyType} ${field.propertyName}End;
    <#elseif field.propertyType == 'BigDecimal'>

    /**
     * ${field.comment!''}
     */
    @ApiModelProperty("${field.comment!''}")
    @QueryOp(QueryOpEnum.EQ)
    private BigDecimal ${field.propertyName};
    <#else>

    /**
     * ${field.comment!''}
     */
    @ApiModelProperty("${field.comment!''}")
    @QueryOp(QueryOpEnum.EQ)
    private ${field.propertyType} ${field.propertyName};
    </#if>
</#if>
</#list>
</#if>
}
